package treeHoleSERVICE;


import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

public interface PostMessage {
   
    /**
     *@Description: 根据人的名字找到相应的用户的历史发布
     *@Param: [userName]
     *@return:java.util.List<treeHoleSERVICE.User.userHistory>
     *@Author: Mr.yue
     *@Date: 2022/6/16 22:22
     */
    List<User.UserHistory> historyPostMessage(int userAccount);

    /**
     *@Description: 点赞数量加一
     *@Param: [userName, title]
     *@return:[java.lang.String, java.lang.String]
     *@Author: Mr.yue
     *@Date: 2022/6/16 18:20
     */
    boolean giveLike(String userName,String title);

    /**
     *@Description: 根据用户账号将发帖内容存入我们相应的用户文本文件并需要加将其添加到我们公共树洞
     *@Param: [user]
     *@return:treeHoleSERVICE.User
     *@Author: Mr.Lin
     *@Date: 2022/6/20 17:03
     */
    User postMessage(User user);
}
